package com.gt.consumer;

import com.alibaba.dubbo.config.annotation.Reference;
import com.gt.service.DemoService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ConsumerController {
    @Reference
    DemoService demo2Service;

    @GetMapping("/add2")
    public Integer add2(Integer a, Integer b){
        return demo2Service.add(a, b);
    }
}
